import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";

export function flowdesignPage(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_WORKFLOW}/FlowDesign/LoadData`,
    method: "post",
    data
  });
}

export function flowdesignAdd(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_WORKFLOW}/flowdesign/add`,
    method: "post",
    data
  });
}

export function flowdesignDelete(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_WORKFLOW}/flowdesign/delete`,
    method: "post",
    data
  });
}

export function flowdesignEdit(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_WORKFLOW}/flowdesign/update`,
    method: "post",
    data
  });
}

export function flowdesignDetail(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_WORKFLOW}/flowdesign/get`,
    method: "get",
    params
  });
}
